import request from '@/utils/request'

interface requestData{
    count: string;
      code?:string
      data?:any
      msg?:string
    }
//查
export function getFullTimePayroll(data: any) {
    return request<requestData,requestData>({
        url: "/salary/salary",
        method: 'get',
        params:data,
        timeout:180000
    })
}

//改
export async function putFullTimePayroll(data: any) {
    return await request<requestData,requestData>({
        url: "/salary/salary",
        method: 'put',
        data:data
    })
}

//重算考勤
export async function getKaoqinBackcalmoney(data: any) {
    return await request<requestData,requestData>({
        url: "/kaoqin/backcalmoney",
        method: 'get',
        params:data
    })
}